import request from "@/utils/request";




export function add(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile",
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/condition/page",
    method: 'get',
    params

  });

}

export function revise(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile",
    method: 'PUT',
    data

  });

}
export function del(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/"+params.elderlyCode,
    method: 'DELETE',
    params

  });

}

export function searchElderlyOfCheckInStatus(params) {
  return request({
    url: "/sinohis/pension/checkin/checkinmanager/searchElderlyOfCheckInStatus/"+params.elderlyCode,
    method: 'get',
    params

  });

}

//查询老人档案
export function searchelderlyfile(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/"+params.elderlyCode,
    method: 'get',
    params

  });

}
export function familymember(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/familymember/"+params.elderlyCode,
    method: 'get',
    params

  });

}
